home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
varia
/
egebook.lha
/
ege.book
/
5
/
Course.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-07
|
637b
|
34 lines
#ifndef Course_h
#define Course_h
#include <iostream.h>
#include <bool.h>
#include <String.h>
#include "Example.h"
#include "Student.h"
#include "Teacher.h"
#include "Collection.h"
class Course: public Example {
String number;
String name;
int capacity;
public:
static Collection *All;
Course(String nu, String na):
number(nu),name(na),capacity(25) {
All->add(this);
};
void print() {
cout << "Course: " << number << " - " << name << "\n";
};
bool identify(String &);
Example* alike(String &);
void maintain();
bool add(Example *){return FALSE;};
Example* select(){return NULL;};
};
#endif